gdk/wayland: Switch behavior of BTN_STYLUS/STYLUS2 as middle/right click
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 5 Jul 2023 14:24:03 +0000 (16:24 +0200)
committerSimon McVittie <smcv@debian.org>
Sun, 10 Sep 2023 14:51:04 +0000 (15:51 +0100)
commit7733def8cdeabe9a57d465f90ad4cc354d0113cb
tree0bf6d34938b4cc45dd10790afe0b85d9e4fe53ff
parent50a67e89ea67f3cc498c0636fd97c604314e8dd5
gdk/wayland: Switch behavior of BTN_STYLUS/STYLUS2 as middle/right click

This mapping of stylus evdev input event codes into GDK button numbers
makes gdk/wayland inconsistent with gdk/x11, so depending on the backend
the same button middle-click pastes or right-click pops up menus.

Make the wayland backend consistent with X11, so that a GNOME wayland
session gets these buttons consistently mapped across all kinds of
clients.

(cherry-picked from commit e28ff79bec53ecd56885390ba4a66019cde598c6)

Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6169
Origin: 3.24.39, commit:e205bdaa89342bb1d47527be0cdfbc1bfb0f5f59

Gbp-Pq: Name gdk-wayland-Switch-behavior-of-BTN_STYLUS-STYLUS2-as-midd.patch
gdk/wayland/gdkdevice-wayland.c